package com.ruoyi.business.mapper;

import com.ruoyi.business.domain.BusCheck;
import com.ruoyi.business.dto.CheckDto;
import com.ruoyi.common.core.domain.model.LoginUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 内容:
 * 作者: cy
 */


@Mapper
public interface BusCheckMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BusCheck record);

    int insertSelective(BusCheck record);

    BusCheck selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BusCheck record);

    int updateByPrimaryKey(BusCheck record);

    /**
     * 分页查询检查单信息
     * @param checkDto
     * @param loginUser
     * @return
     */

    List<BusCheck> selectCheckPage(@Param("checkDto") CheckDto checkDto, @Param("loginUser") LoginUser loginUser);
}